<template>
	<view class="body">
		<view>
			<u-tabs :list="list" :is-scroll="false" :current="current" inactive-color="#999999" @change="change">
			</u-tabs>
		</view>
		<view class="content">
			<view class="top">
				<view class="top-text">预约时间:2019-01-01</view>
				<view class="state">已完成</view>
			</view>
			<view class="content-text">下单时间&nbsp:&nbsp&nbsp2019-01-01&nbsp&nbsp&nbsp 12:00</view>
			<view class="content-info">
				<view class="img">陕·A99999</view>
				<view class="text">小型车</view>
			</view>
		</view>
		<view class="content">
			<view class="top">
				<view class="top-text">预约时间:2019-01-01</view>
				<view class="state">已完成</view>
			</view>
			<view class="content-text">下单时间&nbsp:&nbsp&nbsp2019-01-01&nbsp&nbsp&nbsp 12:00</view>
			<view class="content-info">
				<view class="img">陕·A99999</view>
				<view class="text">小型车</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
					name: '全部'
				}, {
					name: '待付款'
				}, {
					name: '待车检',
				}, {
					name: '已完成',
				}, {
					name: '已取消',
				}],
				current: 0
			}
		},
		methods: {
			change(index) {
				this.current = index;
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #F2F5F9;
	}

	.body {
		.content {
			margin-top: 30rpx;
			background-color: #FFFFFF;
			padding: 15rpx 25rpx;

			.top {
				display: flex;
				justify-content: space-between;
				align-items: center;

				.top-text {
					color: #000000;
					font-weight: 700;
					font-size: 32rpx;
				}

				.state {
					color: #007BFF;
					font-size: 25rpx;
				}
			}

			.content-text {
				color: #999999;
				font-size: 25rpx;
				padding: 5rpx;
			}

			.content-info {
				display: flex;
				align-items: center;
				margin-top: 10rpx;

				.img {
					color: #FFFFFF;
					font-size: 40rpx;
					background: url(../../../../static/my/order-13.png) no-repeat;
					background-size: 100%;
					padding: 15rpx 20rpx;
					line-height: 50rpx;
				}

				.text {
					color: #BDBEBE;
					font-size: 25rpx;
					background-color: #F6F6F6;
					padding: 15rpx;
					margin-left: 20rpx;
				}
			}
		}
	}
</style>
